package com.kitwee.serialport.decoder.panasonic;

public class FPXOutputForIntDecoder extends FPXInstructionToIntDecoder {
	
	@Override
	public  synchronized Object decode(byte[] source) {
		Object returnObject = super.decode(source);
		
//		Object object = deviceStatus.getExpand().get(instruction.getDecoder_object());
//		if(object!=null){
//			Integer returnObjectTemp = Integer.valueOf(String.valueOf(returnObject));
//			Integer objectTemp = Integer.valueOf(String.valueOf(object));
//			if(returnObjectTemp>=objectTemp){
//				Integer outputTemp = returnObjectTemp - objectTemp;
//				deviceStatus.getExpand().put("standard_output", outputTemp);
//			}else{
//				deviceStatus.getExpand().put("standard_output", 0);
//			}
//		}else{
//			deviceStatus.getExpand().put("standard_output", 0);
//		}
		//returnObject = new Random().nextInt(100);
		return returnObject;
	}

}
